﻿namespace Abstraction
{
    using System;

    internal class FigureExamples
    {
        private static void Main()
        {
            Circle sampleCircle = new Circle(5);
            Console.WriteLine(
                "I am a circle. " + "My perimeter is {0:f2}. My surface is {1:f2}.",
                sampleCircle.CalculatePerimeter(),
                sampleCircle.CalculateSurface());

            Rectangle sampleRectangle = new Rectangle(2, 3);
            Console.WriteLine(
                "I am a rectangle. " + "My perimeter is {0:f2}. My surface is {1:f2}.",
                sampleRectangle.CalculatePerimeter(),
                sampleRectangle.CalculateSurface());
        }
    }
}